<?php
/* @var $this RegHealthPolicyController */
/* @var $model RegHealthPolicy */
?>

<?php
$this->breadcrumbs=array(
	'Reg Health Policies'=>array('index'),
	$model->id,
);

?>

<h1>Lihat Health Policy</h1>

<br />
<a href="<?php echo Yii::app()->createUrl('regHealthPolicy/admin'); ?>" class="btn btn-sm btn-primary">Kembali</a><br /><br />
<br />

<?php
	if($_REQUEST['success']==1){
	?>
	<div class="row">
	<div class="col-md-10">
	<div class="alert alert-success fade in">
	<i class="icon-remove close" data-dismiss="alert"></i>
	<strong><h4>Success</h4></strong>
	</div>
	</div>
	</div>
	<?php
	}
?>

<?php $this->widget('zii.widgets.CDetailView',array(
    'htmlOptions' => array(
        'class' => 'table table-striped table-condensed table-hover',
    ),
    'data'=>$model,
    'attributes'=>array(
		'id',
		array(
			'name'=>'mst_client_id',
			'value'=>MstClient::model()->findByPk($model->mst_client_id)->name,
			),
		array(
			'name'=>'mst_jns_asuransi_id',
			'value'=>'Health',
			),
		array(
			'name'=>'mst_perusahaan_asuransi_id',
			'value'=>MstPerusahaanAsuransi::model()->findByPk($model->mst_perusahaan_asuransi_id)->name,
			),

		'policy_no',
		array(
			'name'=>'mst_marketing_id',
			'value'=>MstMarketing::model()->findByPk($model->mst_marketing_id)->name,
			),
		array(
			'name'=>'start_periode',
			'value'=>date('d-m-Y',strtotime($model->start_periode)),
			),
		array(
			'name'=>'end_periode',
			'value'=>date('d-m-Y',strtotime($model->end_periode)),
			),
		array(
			'name'=>'mst_currency_id',
			'value'=>MstCurrency::model()->findByPk($model->mst_currency_id)->name,
			),
		'jml_installment',
		'remarks',
	),
)); ?>